﻿<Window x:Name="window" x:Class="LetsPlay.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="W co chcesz zagrać?" Height="348.507" Width="626.864" ResizeMode="CanMinimize" Icon="Aroche-Delta-Games.ico">
    <Window.Resources>
        <DataTemplate x:Key="gameRecord">
            <StackPanel Orientation="Horizontal" Margin="2" >
                <TextBlock Text="{Binding Path=gameName}" Width="512"/>
                <Button Content="Graj!"  Click="Button_Click" Width="60" />
            </StackPanel>
        </DataTemplate>
    </Window.Resources>
    <ListBox x:Name="listaGier"  Height="300" Margin="10,10,10,10" VerticalAlignment="Top" Width="594" ItemsSource="{Binding}" ItemTemplate="{StaticResource gameRecord}" IsSynchronizedWithCurrentItem="True"/>
</Window>
